package homework.api01.apitest01;

public class LengthDemo {
    public static void main(String[] args) {
        //获取当前字符串长度(元素个数)
        String str = "123abc";
        System.out.println(str.length());//6

        int s1 = str.length();
        System.out.println(s1);//6
    }
}
